﻿using System;
using Windows.UI.Xaml.Data;

namespace Antares.Converters
{
    public class RoleToIconConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, string language)
        {
            var role = (string)value;
            return string.IsNullOrEmpty(role)
                       ? "../Assets/MemberIcon.png"
                       : "../Assets/PMIcon.png";

        }

        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            throw new NotImplementedException();
        }
    }
}
